package com.sky.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.result.PageResult;
import com.sky.vo.DishVO;

import java.util.List;

public interface DishService extends IService<Dish> {
    Long countByCategoryId(Long categoryId);

    Dish queryById(Long id);

    DishVO queryByIdWithFlavor(Long id);

    List<Dish> listByCategoryId(Long categoryId);

    Dish startOrStop(Long id, Integer status);


    PageResult pageQuery(DishPageQueryDTO dishPageQueryDTO);

    void deleteByIds(List<Long> idList);

    Dish create(DishDTO dishDTO);

    DishVO updateByIdWithFlavor(DishDTO dishDTO);

    List<DishVO> listByCategoryIdWithFlavor(Long categoryId);
}
